package ClassSecond;

public class Circle {
	private int x;
	private int y;
	private double r;
	
	public Circle(int x,int y,double r) {
		this.x=x;
		this.y=y;
		this.r=r;
	}
	
	public double getArea(double r) {
		return Math.PI*r*r;
	}
	
	public void contains(Point P) {
		if(P.distance(x, y) < r) {
			System.out.println("Point("+P.getX(P)+","+P.getY(P)+") is in the Circle(("+x+","+y+"),"+r+")");
		}
		else {
			System.out.println("Point("+P.getX(P)+","+P.getY(P)+") is not in the Circle(("+x+","+y+"),"+r+")");
		}
	}
	public void contains(int a,int b) {
		Point P=new Point(a,b);
		if(P.distance(x, y) < r) {
			System.out.println("Point("+P.getX(P)+","+P.getY(P)+") is in the Circle(("+x+","+y+"),"+r+")");
		}
		else {
			System.out.println("Point("+P.getX(P)+","+P.getY(P)+") is not in the Circle(("+x+","+y+"),"+r+")");
		}
	}
}
